#include <iostream.h>
#include <iomanip.h>
#include <math.h>
int main()
{
double a,b,h,x,y,s,p;
int n,i;
cout << "Vvedite a,b,n" << endl;
a = 0.1;
b = 1;
n = 140;
h=(b-a)/10;
x=a;
do
  {
    p=s=1;
    for (i=1;i<=n;i++)
    {
      p*=pow(x,2)/i;
      s+=(2*i+1)*p;
    }
    y=(1+2*pow(x,2))*exp(pow(x,2));
    cout << setw(15) << x << setw(15) << y << setw(15) << s << endl;
    x+=h;
  }
while (x<=b+h/2);
cout << endl;
 return 0;
}
